
<form class="form-horizontal">
	<div class="form-group" ng-repeat="global in globals" >
	    <label class="col-md-2 control-label">{{global.name}}：</label>
	    <div class="col-md-4">
			<input type="text" ng-show="global.edit" ng-model="global.value"  class="form-control" placeholder="请填写">
			<div class="control-content" ng-show="!global.edit"> {{global.value}}</div>
	    </div>
	    <div class="col-md-2">
	    	<button ng-show="!global.edit" ng-click="global.edit = !global.edit" class="btn btn-sm" >编辑</button>
	    	<button ng-show="global.edit" ng-click="submit(global)" class="btn btn-primary" >提交</button>
	    	<button ng-show="global.edit" ng-click="global.edit = !global.edit" class="btn" >取消</button>
	    </div>
	</div>

</form>